import store from '@/store'
export default {
  data () {
    return {
      mixinData: '混入数据'
    }
  },
  methods: {
    canClick (pointBtn) {
      const { userInfo } = store.state.user
      // 1. 如果传入的pointCode存在 就返回true 2. 如果传入的pointCode不存在 就返回false
      console.log(userInfo.roles.points)
      console.log(userInfo.roles.points.includes(pointBtn))
      return userInfo?.roles.points.includes(pointBtn)
    }
  }
}
